package com.linln.admin.process.validator;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author timo
 * @date 2021/04/03
 */
@Data
public class ProcessValid implements Serializable {
    @NotEmpty(message = "工序名称不能为空")
    private String title;
    @NotEmpty(message = "商品编码不能为空")
    private String goods_code;
    @NotEmpty(message = "部件id不能为空")
    private String component_id;
    @NotNull(message = "工序单价不能为空")
    private BigDecimal process_price;
    @NotNull(message = "工序类型不能为空")
    private Integer process_type;
}